import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path';
const viteSSR = require('vite-ssr/plugin')
// https://vitejs.dev/config/
function pathResolve(dir) {
  return resolve(process.cwd(), '.', dir);
}
export default defineConfig({
  resolve: {
    alias: [
      {
        find: /\/@\//,
        replacement: pathResolve('src') + '/',
      },
    ]
  },
  plugins: [vue(),viteSSR()]
})
